package com.itheima.reggie.entity;

import lombok.Data;

// DTO去扩展POJO类，增加扩展的属性
@Data
public class UserDto extends User{
    // 扩展属性
    private String code;

    @Override
    public String toString() {
        return super.toString()+"UserDto{" +
                "code='" +code + '\'' +
                '}';
    }
}
